import request from "@/utils/request"

export function queryPageCustomer(data) {
  return request({
    url: "/CCustomer/queryPage",
    method: "POST",
    data: data
  })
}

export function queryListCustomer(data) {
  return request({
    url: "/CCustomer/queryList",
    method: "GET",
    params: data
  })
}

export function insertCustomer(data) {
  return request({
    url: "/CCustomer/insertCCustomer",
    method: "POST",
    data: data
  })
}

export function updateCustomer(data) {
  return request({
    url: "/CCustomer/update",
    method: "POST",
    data: data
  })
}

export function deleteCustomer(data) {
  return request({
    url: "/CCustomer/delete",
    method: "POST",
    data: data
  })
}

export function bindHouseKeeper(data) {
  return request({
    url: "/CCustomer/bindHouseKeeper",
    method: "POST",
    data: data
  })
}
